FROM golang:1.24.4-bookworm

WORKDIR /app

# 安装 air (使用新仓库地址) 和基础工具
RUN go install github.com/air-verse/air@latest && \
    apt-get update && \
    apt-get install -y git && \
    rm -rf /var/lib/apt/lists/*

# 复制模块文件
# COPY go.mod go.sum ./
# RUN go mod download

# COPY . .

# CMD ["air", "-c", ".air.toml"]